import axios from '../utils/request'
// 添加
export const addlist = (val) => {
    return axios({
        url: '/leave/leaveAdd',
        method: 'post',
        data: val
    })
}
// 上传
export const updated = (val) => {
    return axios({
        url: "/leave/upload",
        method: "post",
        data: val
    })
}
// 用户获取
export const list = (data)=>{
    return axios({
        url:'/users/userList',
        method:'get',
        data:data
    })
}
// 请假调休添加数据
export const eventAdd= (val)=>{
    return axios({
        url:"/evection/evectionAdd",
        method:'post',
        data:val
    })
}
// 请假获取列表和搜索列表
export const search=(val)=>{
    return axios({
        url:'/evection/evectionSearch',
        method:'get',
        data:val
    })
}
// 